package pers.gxm.factorymethod.idcard;

import pers.gxm.factorymethod.framework.Product;

public class IDCard extends Product {
    private String owner;
    private int number;
    IDCard(int number,String owner){
        System.out.println("制作" + owner + "的ID卡。");
        this.owner = owner;
        this.number = number;
    }

    public String getOwner(){
        return owner;
    }
    public int getNumber(){
        return number;
    }

    @Override
    public void use() {
        System.out.println("使用" + owner + "的ID卡。");
    }
}
